package chapter1.thread.account_Lock;

public class TestBank {
    public static void main(String[] args) {
        Account ac = new Account("hf-0001", 2000);
        MoneyTaker m = new MoneyTaker("张良木", ac);
        MoneyTaker m1 = new MoneyTaker("张良木老婆", ac);
        MoneyTaker m2 = new MoneyTaker("张良木小三", ac);
        Depositer m3 = new Depositer("张良木女朋友", ac);
        m.start();
        m1.start();
        m2.start();
        m3.start();
    }
}
